import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/routerPages/Main'
import My from '@/routerPages/My'
import NotWechat from '@/routerPages/NotWechat'
import PayResult from '@/routerPages/PayResult'
import GoodsInfo from '@/components/GoodsInfo'
import Information from '@/components/Information'
import PayInfoList from '@/components/PayInfoList'
import PayInfo from '@/components/PayInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/My',
      name: 'My',
      component: My,
      meta: {
        title: '个人中心'
      }
    },
    {
      path: '/notWechat',
      name: 'NotWechat',
      component: NotWechat,
      meta: {
        title: '请在微信中打开此链接'
      }
    },
    {
      path: '/GoodsInfo',
      name: 'GoodsInfo',
      component: GoodsInfo,
      meta: {
        title: '活动详情'
      }
    },
    {
      path: '/Information',
      name: 'Information',
      component: Information,
      meta: {
        title: '填写报名信息'
      }
    },
    {
      path: '/PayInfoList',
      name: 'PayInfoList',
      component: PayInfoList,
      meta: {
        title: '支付列表'
      }
    },
    {
      path: '/PayInfo',
      name: 'PayInfo',
      component: PayInfo,
      meta: {
        title: '支付详情'
      }
    },
    {
      path: '/PayResult',
      name: 'PayResult',
      component: PayResult,
      meta: {
        title: '支付结果通知'
      }
    }
  ]
})
